<include file="Public/header" />
<title>添加账册</title>
</head>
<body>
<div class="pd-20">
<form action="__URL__/add_goods" name="postForm" id="postForm" method="post" >
	<table class="table table-border table-bordered table-bg">
		<input type="hidden" name="id" class="input-text" value="<{$detail.id}>">
				<tbody>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">订单编号</td>
				<td class="text-l" width="35%">
					<input type="text" name="order_no" class="input-text" value="<{$detail.order_no}>" >
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">电子面单号</td>
				<td class="text-l">
					<input type="text" name="logistics_no" class="input-text" value="<{$detail.logistics_no}>" >
				</td>				
			</tr>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">收件人姓名</td>
				<td class="text-l" width="35%">
					<input type="text" name="user_name" class="input-text" value="<{$detail.user_name}>" >
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">身份证号</td>
				<td class="text-l">
					<input type="text" name="user_idcard" class="input-text" value="<{$detail.user_idcard}>" >
				</td>				
			</tr>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">收件人电话</td>
				<td class="text-l" width="35%">
					<input type="text" name="user_phone" class="input-text" value="<{$detail.user_phone}>" >
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">省</td>
				<td class="text-l">
					<input type="text" name="province" class="input-text" value="<{$detail.province}>" >
				</td>				
			</tr>
			<tr class="text-c">
				<td width="15%" class="text-r" style="background-color:#f5f5f5">市</td>
				<td class="text-l" width="35%">
					<input type="text" name="city" class="input-text" value="<{$detail.city}>" >
				</td>
				<td width="15%" class="text-r" style="background-color:#f5f5f5">区/县</td>
				<td class="text-l">
					<input type="text" name="area" class="input-text" value="<{$detail.area}>" >
				</td>				
			</tr>
			<tr class="text-c">
				
				<td width="15%" class="text-r" style="background-color:#f5f5f5">详细地址</td>
				<td class="text-l">
					<input type="text" name="user_address" class="input-text" value="<{$detail.user_address}>" >
				</td>	
				<td width="15%" class="text-r" style="background-color:#f5f5f5">状态</td>
				<td class="text-l" width="35%">
					<img src="__PUBLIC__/img/flag/flag_green.png">
					<input type="radio" name="flag" value="1" checked="">
					<img src="__PUBLIC__/img/flag/flag_yellow.png"></img>
					<input type="radio" name="flag" value="2">
					<img src="__PUBLIC__/img/flag/flag_red.png">
					<input type="radio" name="flag" value="3">
				</td>				
			</tr>
		</tbody>
	</table>
	<input type="button" class="btn btn-primary radius mt" id="b_add" value="更新">
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script>
	$("#b_add").click(function() { 
        $("#postForm").ajaxSubmit({  
            url: "<{:U('add_order')}>",
            type : "post",  
            dataType : 'json',  
            success : function(data) {
				if(data.status==1){
					layer.msg(data.message,function(){
						parent.window.location.href =parent.window.location.href;
					});
				}else{
					layer.msg(data.message);
				}
                
            },  
            error : function(data) {  
                layer.msg('出错');
            }  
        });  
    });

</script>
</body>
</html>